package com.atrenwen.spring.springtest002.cotrool;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class Indexcontroller {
    @RequestMapping(value = "/say")
    @ResponseBody
    public String say(){
        return "say hello say";
    }
    @RequestMapping(value = "/mapvalue")
    public @ResponseBody Map<String,Object> mapvalue(){
        Map<String,Object> retmap = new HashMap<String,Object>();
        retmap.put("massage","springboot project");
        return retmap;
    }
}
